package com.ld.security.demo.conver;

import com.ld.security.server.blog.modules.cms.entity.CmsContentEntity;
import com.ld.security.server.user.modules.rec.conver.AbstIremConver;
import org.springframework.stereotype.Component;

@Component
public class ContentToItemConver extends AbstIremConver<CmsContentEntity> {

    @Override
    public boolean isConver(CmsContentEntity cmsContentEntity) {
        //专辑不推荐
        if(cmsContentEntity.getCollectId().equals("-1")){
            return false;
        }
        return super.isConver(cmsContentEntity);
    }

    public ContentToItemConver() {
        super("label", "digest", "labelMap.cmsType", "labelMap.authorId","picture");
    }
}

